package org.meteorshower.employee_depart.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Objects;


/**
 * 民族，映射完成
 * @table nation
 * */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("nation")
public class Nation implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableField("n_id")
    private Integer nId;
    @TableField("nation")
    private String nation;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Nation nation = (Nation) o;
        return Objects.equals(nation, nation.nation);
    }

    @Override
    public int hashCode() {
        return Objects.hash(nation);
    }
}
